import tkinter as tk
from tkinter import ttk

class App(ttk.Frame):
    def __init__(self, parent):
        ttk.Frame.__init__(self)
        self.setup_widgets()

    def setup_widgets(self):

        self.widgets_frame = ttk.Frame(self, padding=(0, 0, 0, 0))
        self.widgets_frame.grid(row=0, column=0, padx=10, pady=10, sticky="nsew")
        self.widgets_frame.columnconfigure(index=0, weight=1)

        self.accentbutton = ttk.Button(self.widgets_frame, text="+ 新增标签", style="Accent.TButton", width=40)
        self.accentbutton.grid(row=0, column=0, padx=5, pady=5, sticky="nsew")


if __name__ == "__main__":
    root = tk.Tk()
    win_width = 360
    win_height = 800
    screen_width = root.winfo_screenwidth()
    screen_height = root.winfo_screenheight()

    root.title("Simple Note")

    root.tk.call("source", "azure.tcl")
    root.tk.call("set_theme", "dark")

    app = App(root)
    app.pack(fill="both", expand=True)

    root.geometry(f"{win_width}x{win_height}+{screen_width-win_width-150}+100")

    root.mainloop()